console.log(11)

const map = function(arr,fun){
    const res = []
    for(var i = 0 ; i<arr.length ;i++){
       res.push( fun(arr[i]))
    }
    return res
}

const fifter = function(arr,fun){
    const res = []
    for(var i = 0 ; i<arr.length ;i++){
        if(fun(arr[i])){
            res.push( arr[i])
        }
    }
    return res
}

const every = function(arr,fun){
    for(var i = 0 ; i<arr.length ;i++){
       if(!fun(arr[i])){
            return false
       }
    }
    return true
}


const some = function(arr,fun){
    const res = []
    for(var i = 0 ; i<arr.length ;i++){
        if(fun(arr[i])){
            return true
        }
    }
    return false
}



const arr = every([1,2,3,4,5],(item)=>{
    return  item >3
})

console.log(arr)